import {ViewModuleIcon, Edit1Icon, LayersIcon, ChartBubbleIcon, ThumbUpIcon} from 'tdesign-icons-vue';
import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/adopt',
    name: 'Adopt',
    component: Layout,
    redirect: '/adopt/online',
    meta: {title: '宠物领养', icon: ViewModuleIcon},
    children: [
      // 线上
      {
        path: 'online',
        name: 'AdoptOnline',
        component: () => import('@/pages/list/adoptOnline/index.vue'),
        meta: {title: '线上云领养申请'},
      },
      {
        path: 'adoptInfo-online',
        name: 'AdoptInfoOnline',
        component: () => import('@/pages/list/adoptOnline/online.vue'),
        meta: {title: '云领养人详细信息', hidden: true},
      },
      // 线下
      {
        path: 'offline',
        name: 'AdoptOffline',
        component: () => import('@/pages/list/tree/index.vue'),
        meta: {title: '线下领养申请'},
      },
      {
        path: 'adoptInfo-offline',
        name: 'adoptInfoOffline',
        component: () => import('@/pages/list/tree/offline.vue'),
        meta: {title: '线下领养人详细信息', hidden: true},
      },
    ],
  },
  {
    path: '/pet',
    name: 'PetManage',
    component: Layout,
    redirect: '/pet/list',
    meta: {title: '宠物管理', icon: Edit1Icon},
    children: [
      {
        path: 'list',
        name: 'PetList',
        component: () => import('@/pages/form/list/index.vue'),
        meta: {title: '宠物信息管理'},
      },
      {
        path: 'detail',
        name: 'PetDetail',
        component: () => import('@/pages/form/list/petDetail.vue'),
        meta: {title: '宠物基本信息', hidden: true},
      },
      {
        path: 'add',
        name: 'PetAdd',
        component: () => import('@/pages/form/add/index.vue'),
        meta: {title: '添加宠物信息'},
      },
    ],
  },
  {
    path: '/help',
    name: 'Help',
    component: Layout,
    redirect: '/help/examine',
    meta: {title: '救助活动', icon: ViewModuleIcon},
    children: [
      {
        path: 'examine',
        name: 'HelpExamine',
        component: () => import('@/pages/help/examine/index.vue'),
        meta: {title: '救助活动审核'},
      },
      {
        path: 'publish',
        name: 'HelpPublish',
        component: () => import('@/pages/help/publish/index.vue'),
        meta: {title: '救助活动发布', hidden: true},
      },
      {
        path: 'volunteer',
        name: 'HelpVolunteer',
        component: () => import('@/pages/help/volunteer/volunteer.vue'),
        meta: {title: '义工招募'},
      },
      {
        path: 'addVolunteer',
        name: 'AddHelpVolunteer',
        component: () => import('@/pages/help/volunteer/publish.vue'),
        meta: {title: '新增招募活动', hidden: true},
      },
      {
        path: 'volunteerDetail',
        name: 'HelpVolunteer',
        component: () => import('@/pages/help/volunteer/detail.vue'),
        meta: {title: '义工详情', hidden: true},
      },
      {
        path: 'raiseFunds',
        name: 'HelpRaiseFunds',
        component: () => import('@/pages/help/raise/raiseFunds.vue'),
        meta: {title: '动物筹金'},
      },
      {
        path: 'addRaiseFunds',
        name: 'AddHelpRaiseFunds',
        component: () => import('@/pages/help/raise/publish.vue'),
        meta: {title: '新增动物筹金', hidden: true},
      },
      {
        path: 'history',
        name: 'HelpHistoryCard',
        component: () => import('@/pages/help/history/index.vue'),
        meta: {title: '历史救助活动'},
      }
    ],
  },
  {
    path: '/vagabond',
    name: 'Vagabond',
    component: Layout,
    redirect: '/vagabond/list',
    meta: {title: '流浪动物', icon: ChartBubbleIcon},
    children: [
      {
        path: 'list',
        name: 'VagabondList',
        component: () => import('@/pages/vagabond/index.vue'),
        meta: {title: '流浪动物信息'},
      },
      {
        path: 'detail',
        name: 'VagabondDetail',
        component: () => import('@/pages/vagabond/detail.vue'),
        meta: {title: '流浪动物信息详情', hidden: true},
      },
      {
        path: 'auth',
        name: 'VagabondAuth',
        component: () => import('@/pages/vagabond/authentication.vue'),
        meta: {title: '动物认证'},
      },
    ]
  },
  {
    path: '/score',
    name: 'Score',
    component: Layout,
    redirect: '/Score/list',
    meta: {title: '评分查看', icon: ThumbUpIcon},
    children: [
      {
        path: 'list',
        name: 'ScoreList',
        component: () => import('@/pages/score/index.vue'),
        meta: {title: '爱心评分'},
      },
      {
        path: 'detail',
        name: 'ScoreDetail',
        component: () => import('@/pages/score/detail.vue'),
        meta: {title: '评分信息', hidden: true},
      }
    ]
  },

  {
    path: '/detail',
    name: 'detail',
    component: Layout,
    redirect: '/detail/add',
    meta: {title: '详情页', icon: LayersIcon, hidden: true},
    children: [
      {
        path: 'base',
        name: 'DetailBase',
        component: () => import('@/pages/detail/base/index.vue'),
        meta: {title: '基础详情页'},
      },
      {
        path: 'advanced',
        name: 'DetailAdvanced',
        component: () => import('@/pages/detail/advanced/index.vue'),
        meta: {title: '多卡片详情页', hidden: true},
      },
      {
        path: 'deploy',
        name: 'DetailDeploy',
        component: () => import('@/pages/detail/deploy/index.vue'),
        meta: {title: '数据详情页'},
      },
      {
        path: 'secondary',
        name: 'DetailSecondary',
        component: () => import('@/pages/detail/secondary/index.vue'),
        meta: {title: '二级详情页', hidden: true},
      },
    ],
  },

  /*{
    path: '/result',
    name: 'result',
    component: Layout,
    redirect: '/result/success',
    meta: { title: '结果页', icon: 'check-circle' },
    children: [
      {
        path: 'success',
        name: 'ResultSuccess',
        component: () => import('@/pages/result/success/index.vue'),
        meta: { title: '成功页' },
      },
      {
        path: 'fail',
        name: 'ResultFail',
        component: () => import('@/pages/result/fail/index.vue'),
        meta: { title: '失败页' },
      },
      {
        path: 'network-error',
        name: 'ResultNetworkError',
        component: () => import('@/pages/result/network-error/index.vue'),
        meta: { title: '网络异常' },
      },
      {
        path: '403',
        name: 'Result403',
        component: () => import('@/pages/result/403/index.vue'),
        meta: { title: '无权限' },
      },
      {
        path: '404',
        name: 'Result404',
        component: () => import('@/pages/result/404/index.vue'),
        meta: { title: '访问页面不存在页' },
      },
      {
        path: '500',
        name: 'Result500',
        component: () => import('@/pages/result/500/index.vue'),
        meta: { title: '服务器出错页' },
      },
      {
        path: 'browser-incompatible',
        name: 'ResultBrowserIncompatible',
        component: () => import('@/pages/result/browser-incompatible/index.vue'),
        meta: { title: '浏览器不兼容页' },
      },
      {
        path: 'maintenance',
        name: 'ResultMaintenance',
        component: () => import('@/pages/result/maintenance/index.vue'),
        meta: { title: '系统维护页' },
      },
    ],
  },*/
];
